import { defineStore } from "pinia";
import { ref } from "vue";

export const useNavStore = defineStore(
  "nav",
  () => {
    const nav = ref<string | null>(null);
    const setNav = (newNav: string | null) => {
      nav.value = newNav;
    };
    return { nav, setNav };
  },
  {
    persist: true,
  }
);
